<?php
/**
 * (commands) Amazon订单物流同步
 */
namespace App\Console\Commands\SpApi\Outbound;

use App\Logic\Plat\SyncPlatOrder;
use Illuminate\Console\Command;

class GetOutbound extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'amazon:get-outbounds {delivery_order_no=null} {account_id=0}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $deliveryOrderNo = $this->argument('delivery_order_no');
        $accountId = $this->argument('account_id');

        SyncPlatOrder::syncAmazonTrackingNo($deliveryOrderNo,$accountId);

        $this->info('finish!');

    }
}
